package com.stockz.core.util;

import java.util.Date;

public abstract class CoreUtil {

	@SuppressWarnings("deprecation")
	public static Date format(Date date){
		date.setHours(0);
		date.setMinutes(0);
		date.setSeconds(0);
		return date;
	}
	
	public static String getInstallationPath(){
		return Config.get(CoreConstant.keyPathInstallation);
	}
	
	public static String getLibraryPath(){
		return getInstallationPath()+Config.get(CoreConstant.keyPathLibrary);
	}
	
	public static String getConfigurationPath(){
		return getInstallationPath()+Config.get(CoreConstant.keyPathConfiguration);
	}
	
	public static String getDatabaseObjectDbPath(){
		return getInstallationPath()+Config.get(CoreConstant.keyPathDatabaseObjectDb);
	}
	
	public static String getModulesConfigurationPath(){
		return getConfigurationPath() + Config.get(CoreConstant.keyPathConfigurationModules);
	}
	
	public static String getFilebasePath(){
		return getInstallationPath()+Config.get(CoreConstant.keyPathFilebase);
	}
	
}
